const Newtime = require("./13-dateFormat");

const t = new Date();   
console.log(Newtime);   // { dateFormat: [Function: dateFormat] }
console.log(Newtime.dateFormat(t));     // 2022-4-21 23:56:30